﻿using System;
using Presentation;

namespace PresentationTests
{
    public class TriangleFakeView : ITriangleView
    {
        public string PointA { get; set; }
        public string PointB { get; set; }
        public string PointC { get; set; }

        public string AB { get; set; }
        public string BC { get; set; }
        public string CA { get; set; }

        public string Alpha { get; set; }
        public string Beta  { get; set; }
        public string Gamma { get; set; }

        public string Perimeter { get; set; }
        public string Square    { get; set; }

        public string ErrorMessage { get; set; }

        public event EventHandler<EventArgs> CalculateParameters;
        public event TrianglePresenter.LogEventHandler WriteToLog;

        public void CalculateButtonClick()
        {
            CalculateParameters(null, null);
        }
        public void WriteResultsToLog(ILogger log)
        {
            WriteToLog(log);
        }
    }
}
